package com.example.lcpharmacy.mapper;

import com.example.lcpharmacy.entity.GoodsInfoEntity;
import com.example.lcpharmacy.entity.UserEntity;

import java.util.List;


public interface UserDao {
    UserEntity select(UserEntity userEntity);

    UserEntity selectByName(UserEntity userEntity);

    //Integer默认返回的是 null  如果用int会有返回类型不匹配的风险
    int insertUser(UserEntity userEntity);

    //用户信息展示

    List<UserEntity> selectUsers();

    int deleteById(int id);

    List<UserEntity> checkName(UserEntity userEntity);

    int updateUser(UserEntity userEntity);

    int insertUserInfo(UserEntity userEntity);
}
